package com.ts.base.controller;

import com.ts.base.util.ExceptionManager;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/base")
@Slf4j
@ApiModel(description = "客户字段分组模型",value = "BaseController")

public class BaseController {
    @Resource
    ExceptionManager exceptionManager;
    @RequestMapping("/index")
    @ApiModelProperty(value = "客户字段分组ID")
    public String index(){

        throw exceptionManager.create("EC00002");

        //return "test controller throw exception";


    }
}
